import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';

export default async function a008(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	console.log('筛选　取消');
	const id = args[0].target.dataset.feidaoId;
	const input = fd.data.node.querySelector('[data-feidao-id=input_' + id + ']') as HTMLInputElement;
	input && input.removeAttribute("disabled");
	input && (input.value = "");
	const input_check = fd.data.node.querySelector('[data-feidao-id=check_' + id + ']') as HTMLInputElement;
	input_check && (input_check.checked = false);
	const begin_input = fd.data.node.querySelector("#begin_" + id) as HTMLInputElement;
	begin_input && begin_input.removeAttribute("disabled");
	begin_input && (begin_input.value = "");
	const end_input = fd.data.node.querySelector("#end_" + id) as HTMLInputElement;
	end_input && end_input.removeAttribute("disabled");
	end_input && (end_input.value = "");
}
